package r4.pierwszy.raz;

public class CharStackBin implements Runnable {

	@Override
	public void run() {

	CharStack stack = new CharStack(6);
	
	stack.push('J');
	stack.push('a');
	stack.push('n');
	stack.push('u');
	stack.push('s');
	stack.push('z');
	
	while(! stack.isEmpty())
		System.out.print(stack.pop());
	System.out.println();
	
	PrintableCharStack pcStack = new PrintableCharStack(3);
	
	pcStack.push('H');
	pcStack.push('i');
	pcStack.push('!');
	
	pcStack.printStackElements();
		
	}

}
